<?
    include "../common.php" ;
    $sql = "DELETE FROM users WHERE id = {$_POST['uid']} " ;
    $res = mysqli_query($link,$sql);
    $arr = [] ;
    if( $res ){
        $arr['status'] = 1 ; 
        $arr['info'] = '删除成功' ;
    } else {
        $arr['status'] = 0 ; 
        $arr['info'] = '删除失败' ;
    }
    echo json_encode($arr);
?>